package com.sinopec.yelofixedreader.stock.inn.api

import com.sinopec.basemodule.http.api.HttpResult
import com.sinopec.basemodule.model.AddPalletResultModel
import com.sinopec.basemodule.model.StockInListModel
import com.sinopec.basemodule.model.StockOutListModel
import io.reactivex.Observable
import retrofit2.http.Body
import retrofit2.http.Headers
import retrofit2.http.POST

/**
 * @author lwj
 * @ClassName: StockInService
 * @Description: 入库模块
 */
interface StockInService {
    /**
     * 入库列表
     */
    @Headers("Content-Type: application/json")
    @POST("getTaskList")
    fun searchList(@Body hashMap: HashMap<String, Any?>?): Observable<HttpResult<List<StockInListModel>?>?>?

    /**
     * 确认入库-编码校验
     */
    @Headers("Content-Type: application/json")
    @POST("submitPallet")
    fun confirmStockInOrder(@Body hashMap: HashMap<String, Any>?): Observable<HttpResult<AddPalletResultModel?>?>?

    /**
     * 确认入库完成(暂无)
     */
    @Headers("Content-Type: application/json")
    @POST("createBill")
    fun confirmStockInOrderFinish(@Body hashMap: HashMap<String?, Any?>?): Observable<HttpResult<Any?>?>?
}